package org.lvgo.adapter.clazz;

/**
 * @author lvgo
 * @version 1.0
 * @Description: 狗
 * @date 18-8-21 下午1:37
 */
public class Dog implements Beast {

    private int eyes;

    private int mouth;

    public Dog() {
        this.eyes = 2;
        this.mouth = 1;
    }

    public int getEyes() {
        return eyes;
    }

    public void setEyes(int eyes) {
        this.eyes = eyes;
    }

    public int getMouth() {
        return mouth;
    }

    public void setMouth(int mouth) {
        this.mouth = mouth;
    }

    /**
     * 走兽可以跑
     */
    @Override
    public void run() {
        System.out.println("我是狗，我可以跑");
    }

    public void barking() {
        System.out.println("我是狗，我可以吠！汪汪啊娃娃");
    }
}
